import { createRouter, createWebHistory } from 'vue-router'
import Note from '@/views/note/NoteView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Note',
      component: Note
    },
    {
      path: '/todo',
      name: 'Todo',
      component: () => import('@/views/todo/TodoView.vue')
    },
    {
      path: '/addNote',
      name: 'AddNote',
      component: () => import('@/views/note/AddNote.vue'),
      meta: {
        noHeader: true
      }
    }
  ]
})

export default router
